project/udebug.git
11 months agoucode: check for errors in ftruncate() master
Felix Fietkau [Wed, 6 Dec 2023 13:00:35 +0000 (14:00 +0100)]
ucode: check for errors in ftruncate()

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 months agolib: add netlink handler function
Felix Fietkau [Mon, 4 Dec 2023 19:31:03 +0000 (20:31 +0100)]
lib: add netlink handler function

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 months agolib-ucode: truncate pcap files
Felix Fietkau [Mon, 4 Dec 2023 18:56:14 +0000 (19:56 +0100)]
lib-ucode: truncate pcap files

avoid keeping stale data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 months agolib-ucode: retry partial writes
Felix Fietkau [Mon, 4 Dec 2023 18:54:21 +0000 (19:54 +0100)]
lib-ucode: retry partial writes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 months agolib: fix handling global enable flag
Felix Fietkau [Mon, 4 Dec 2023 18:53:50 +0000 (19:53 +0100)]
lib: fix handling global enable flag

don't override it for individual rings

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoclient: send confirmation messages for ring add/remove
Felix Fietkau [Thu, 30 Nov 2023 11:19:29 +0000 (12:19 +0100)]
client: send confirmation messages for ring add/remove

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: add helper function for applying ring config
Felix Fietkau [Wed, 29 Nov 2023 18:10:16 +0000 (19:10 +0100)]
lib: add helper function for applying ring config

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoring: add debug messages for ring alloc errors
Felix Fietkau [Thu, 30 Nov 2023 09:02:47 +0000 (10:02 +0100)]
ring: add debug messages for ring alloc errors

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoubus: report ring size and data size via ubus api
Felix Fietkau [Thu, 30 Nov 2023 08:53:21 +0000 (09:53 +0100)]
ubus: report ring size and data size via ubus api

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: fix dealing with udebugd restarts
Felix Fietkau [Tue, 28 Nov 2023 12:23:38 +0000 (13:23 +0100)]
lib: fix dealing with udebugd restarts

When re-subscribing, also re-request the configuration in order to
avoid using stale data

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: move library code to libubox, add ubus config handling code
Felix Fietkau [Mon, 27 Nov 2023 15:23:07 +0000 (16:23 +0100)]
lib: move library code to libubox, add ubus config handling code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: fix avl tree lookup
Felix Fietkau [Mon, 27 Nov 2023 13:40:02 +0000 (14:40 +0100)]
lib: fix avl tree lookup

The delta between IDs can be bigger than INT_MAX, causing order mismatch
in the tree and lookup failures

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: remove leftover debug code
Felix Fietkau [Mon, 27 Nov 2023 13:38:54 +0000 (14:38 +0100)]
lib: remove leftover debug code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoserver: properly handle unclaimed file descriptors
Felix Fietkau [Mon, 27 Nov 2023 12:16:34 +0000 (13:16 +0100)]
server: properly handle unclaimed file descriptors

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoREADME: add wireshark info
Felix Fietkau [Tue, 21 Nov 2023 09:46:13 +0000 (10:46 +0100)]
README: add wireshark info

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoring: add missing fread return code check
Felix Fietkau [Mon, 20 Nov 2023 22:01:59 +0000 (23:01 +0100)]
ring: add missing fread return code check

Fixes build issue with glibc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: unmap full ring buffer
Felix Fietkau [Sun, 19 Nov 2023 15:11:40 +0000 (16:11 +0100)]
lib: unmap full ring buffer

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agofix infinite loop on client poll
Felix Fietkau [Sun, 19 Nov 2023 14:39:59 +0000 (15:39 +0100)]
fix infinite loop on client poll

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoubus: add config support
Felix Fietkau [Sun, 19 Nov 2023 12:55:27 +0000 (13:55 +0100)]
ubus: add config support

issue notifications for config changes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agolib: cancel reconnect timer on free
Felix Fietkau [Tue, 14 Nov 2023 11:38:16 +0000 (12:38 +0100)]
lib: cancel reconnect timer on free

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoudebug-cli: cosmetic fix
Felix Fietkau [Tue, 14 Nov 2023 11:30:59 +0000 (12:30 +0100)]
udebug-cli: cosmetic fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoREADME.md: update CLI help
Felix Fietkau [Tue, 14 Nov 2023 11:05:38 +0000 (12:05 +0100)]
README.md: update CLI help

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoring: close ring fd on free
Felix Fietkau [Tue, 14 Nov 2023 11:04:51 +0000 (12:04 +0100)]
ring: close ring fd on free

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoudebug-cli: fix error message
Felix Fietkau [Mon, 13 Nov 2023 21:17:40 +0000 (22:17 +0100)]
udebug-cli: fix error message

Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 months agoInitial import
Felix Fietkau [Sun, 12 Nov 2023 18:11:20 +0000 (19:11 +0100)]
Initial import

Signed-off-by: Felix Fietkau <nbd@nbd.name>